﻿<Window x:Class="BusinessClass.ConfigSetting"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ConfigSetting" Height="706" Width="1139">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="2*"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="127*"></RowDefinition>
                <RowDefinition Height="428*"></RowDefinition>
            </Grid.RowDefinitions>
            <TextBox Height="23" HorizontalAlignment="Left" Margin="66,6,0,0" Name="txtImgName" VerticalAlignment="Top" Width="99" Text="照片{4}.jpg" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="50,46,0,0" Name="txtImgConfigW" VerticalAlignment="Top" Width="56" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="160,46,0,0" Name="txtImgConfigH" VerticalAlignment="Top" Width="67" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="18,6,0,0" Name="textBlock1" Text="照片名" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="16,46,0,0" Name="textBlock2" Text="宽度" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="116,46,0,0" Name="textBlock3" Text="高度" VerticalAlignment="Top" />
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="210,3,0,0" Name="cbImgConfigMakeCount" VerticalAlignment="Top" Width="56">
                <ComboBoxItem Content="1" />
                <ComboBoxItem Content="2" />
                <ComboBoxItem Content="3" />
                <ComboBoxItem Content="4" />
                <ComboBoxItem Content="5" />
                <ComboBoxItem Content="6" />
                <ComboBoxItem Content="7" />
                <ComboBoxItem Content="8" />
                <ComboBoxItem Content="9" />
                <ComboBoxItem Content="10" />
                <ComboBoxItem Content="11" />
                <ComboBoxItem Content="12" />
                <ComboBoxItem Content="13" />
                <ComboBoxItem Content="14" />
                <ComboBoxItem Content="15" />
                <ComboBoxItem Content="16" />
                <ComboBoxItem Content="17" />
                <ComboBoxItem Content="18" />
                <ComboBoxItem Content="19" />
                <ComboBoxItem Content="20" />
                <ComboBoxItem Content="21" />
                <ComboBoxItem Content="22" />
                <ComboBoxItem Content="23" />
                <ComboBoxItem Content="24" />
                <ComboBoxItem Content="25" />
                <ComboBoxItem Content="26" />
                <ComboBoxItem Content="27" />
                <ComboBoxItem Content="28" />
                <ComboBoxItem Content="29" />
                <ComboBoxItem Content="30" />
                <ComboBoxItem Content="31" />
                <ComboBoxItem Content="32" />
                <ComboBoxItem Content="33" />
                <ComboBoxItem Content="34" />
                <ComboBoxItem Content="35" />
                <ComboBoxItem Content="36" />
                <ComboBoxItem Content="37" />
                <ComboBoxItem Content="38" />
                <ComboBoxItem Content="39" />
                <ComboBoxItem Content="40" />
                <ComboBoxItem Content="41" />
                <ComboBoxItem Content="42" />
                <ComboBoxItem Content="43" />
                <ComboBoxItem Content="44" />
                <ComboBoxItem Content="45" />
                <ComboBoxItem Content="46" />
                <ComboBoxItem Content="47" />
                <ComboBoxItem Content="48" />
                <ComboBoxItem Content="49" />
                <ComboBoxItem Content="50" />
            </ComboBox>
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="177,3,0,0" Name="textBlock16" Text="数量" VerticalAlignment="Top" />
            <Button Content="重新生成" Height="23" HorizontalAlignment="Left" Margin="18,87,0,0" Name="btnMakeImgConfigReMake" VerticalAlignment="Top" Width="54" Click="btnMakeImgConfigReMake_Click" />
            <Button Content=" 追加生成" Height="23" HorizontalAlignment="Left" Margin="90,87,0,0" Name="btnMakeImgConfigAppend" VerticalAlignment="Top" Width="75" Click="btnMakeImgConfigAppend_Click" />
            <TextBox Grid.Row="1" Height="Auto" HorizontalAlignment="Stretch" Name="txtImgConfigs" VerticalAlignment="Stretch" Width="Auto" AcceptsReturn="True" />
        </Grid>
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="9,35,0,0" Name="textBlock5" Text="名称" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="44,64,0,0" Name="txtTxt2ImgW" VerticalAlignment="Top" Width="56" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="139,64,0,0" Name="txtTxt2ImgH" VerticalAlignment="Top" Width="67" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="9,64,0,0" Name="textBlock6" Text="宽度" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="109,64,0,0" Name="textBlock8" Text="高度" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="44,32,0,0" Name="txtName" VerticalAlignment="Top" Width="120" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="10,246,0,0" Name="textBlock4" Text="长度最长" VerticalAlignment="Top" />
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="8,201,0,0" Name="cbHV" VerticalAlignment="Top" Width="51" SelectedIndex="0" SelectionChanged="cbHV_SelectionChanged">
                <ComboBoxItem Content="水平" />
                <ComboBoxItem Content="垂直" />
            </ComboBox>
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="72,201,0,0" Name="cbHor" VerticalAlignment="Top" Width="120" SelectedIndex="1">
                <ComboBoxItem Content="水平方向上靠左"  />
                <ComboBoxItem Content="水平方向上居中" />
                <ComboBoxItem Content="水平方向上靠右" />
            </ComboBox>
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="198,201,0,0" Name="cbVer" VerticalAlignment="Top" Width="120" SelectedIndex="1">
                <ComboBoxItem Content="垂直方向上置顶" />
                <ComboBoxItem Content="垂直方向上居中" />
                <ComboBoxItem Content="垂直方向上沉底" />
            </ComboBox>
            <CheckBox Content="粗体" Height="16" HorizontalAlignment="Left" Margin="210,35,0,0" Name="cbBold" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="10,172,0,0" Name="textBlock7" Text="字体大小" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="6,3,0,0" Name="textBlock9" Text="字体名称" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="63,3,0,0" Name="txtFontName" VerticalAlignment="Top" Width="120" Text="Microsoft YaHei" />
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="74,246,0,0" Name="cbTxt2ImgMaxlen" VerticalAlignment="Top" Width="120">
                <ComboBoxItem Content="999" />
                <ComboBoxItem Content="1" />
                <ComboBoxItem Content="2" />
                <ComboBoxItem Content="3" />
                <ComboBoxItem Content="4" />
                <ComboBoxItem Content="5" />
                <ComboBoxItem Content="6" />
                <ComboBoxItem Content="7" />
                <ComboBoxItem Content="8" />
                <ComboBoxItem Content="9" />
                <ComboBoxItem Content="10" />
                <ComboBoxItem Content="11" />
                <ComboBoxItem Content="12" />
                <ComboBoxItem Content="13" />
                <ComboBoxItem Content="14" />
                <ComboBoxItem Content="15" />
                <ComboBoxItem Content="16" />
                <ComboBoxItem Content="17" />
                <ComboBoxItem Content="18" />
                <ComboBoxItem Content="19" />
                <ComboBoxItem Content="20" />
                <ComboBoxItem Content="21" />
                <ComboBoxItem Content="22" />
                <ComboBoxItem Content="23" />
                <ComboBoxItem Content="24" />
                <ComboBoxItem Content="25" />
                <ComboBoxItem Content="26" />
                <ComboBoxItem Content="27" />
                <ComboBoxItem Content="28" />
                <ComboBoxItem Content="29" />
                <ComboBoxItem Content="30" />
                <ComboBoxItem Content="31" />
                <ComboBoxItem Content="32" />
                <ComboBoxItem Content="33" />
                <ComboBoxItem Content="34" />
                <ComboBoxItem Content="35" />
                <ComboBoxItem Content="36" />
                <ComboBoxItem Content="37" />
                <ComboBoxItem Content="38" />
                <ComboBoxItem Content="39" />
                <ComboBoxItem Content="40" />
                <ComboBoxItem Content="41" />
                <ComboBoxItem Content="42" />
                <ComboBoxItem Content="43" />
                <ComboBoxItem Content="44" />
                <ComboBoxItem Content="45" />
                <ComboBoxItem Content="46" />
                <ComboBoxItem Content="47" />
                <ComboBoxItem Content="48" />
                <ComboBoxItem Content="49" />
                <ComboBoxItem Content="50" />
            </ComboBox>
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="8,98,0,0" Name="textBlock10" Text="字体颜色" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="116,98,0,0" Name="textBlock11" Text="背景颜色" VerticalAlignment="Top" />
            <TextBlock Background="{Binding ElementName=txtBackGroundColor, Path=Text}" Margin="223,64,6,130" Name="tbTester" Foreground="{Binding ElementName=txtFontColor, Path=Text}" FontFamily="{Binding ElementName=txtFontName, Path=Text}" FontSize="{Binding ElementName=txtFontSize, Path=Text}"
                       FontWeight="{Binding ElementName=cbBold, Path=IsChecked}"
                       TextAlignment="Left" FontStyle="Normal"
                       >abcdef测试</TextBlock>
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="8,279,0,0" Name="textBlock12" Text="保存文件名" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="72,279,0,0" Name="txtSaveName" Text="" VerticalAlignment="Top" Width="120" />
            <Button Content="添加" Height="23" HorizontalAlignment="Left" Margin="223,278,0,0" Name="btnAddToList" VerticalAlignment="Top" Width="75" />
            <ListBox Margin="0" Name="listBox2" Grid.Row="1" Background="#FFFDF2E5" />
            <Rectangle Height="26" HorizontalAlignment="Left" Margin="175,90,0,0" Name="rectBackGroundColor" Stroke="Black" VerticalAlignment="Top" Width="31" Fill="{Binding ElementName=txtBackGroundColor, Path=Text}" />
            <Rectangle Height="26" HorizontalAlignment="Left" Margin="69,90,0,0" Name="rectFontColor" Stroke="Black" VerticalAlignment="Top" Width="31" Fill="{Binding ElementName=txtFontColor, Path=Text}" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="14,128,0,0" Name="txtFontColor" VerticalAlignment="Top" Width="78" Text="Red" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="116,129,0,0" Name="txtBackGroundColor" VerticalAlignment="Top" Width="88" Text="White" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="74,169,0,0" Name="txtFontSize" VerticalAlignment="Top" Width="120" Text="18" />
        </Grid>
        <Grid Grid.Column="2">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <TextBox Height="23" HorizontalAlignment="Left" Margin="93,18,0,0" Name="textBox9" VerticalAlignment="Top" Width="56" Text="地图链接" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="15,21,0,0" Name="textBlock13" Text="文本文件名" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="14,141,0,0" Name="textBlock14" Text="保存文件名" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="78,141,0,0" Name="textBox10" Text="dt.txt" VerticalAlignment="Top" Width="120" />
            <Button Content="添加" Height="23" HorizontalAlignment="Left" Margin="56,201,0,0" Name="button3" VerticalAlignment="Top" Width="75" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="14,85,0,0" Name="textBlock15" Text="格式" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="78,85,0,0" Name="textBox11" Text="dtdz={0}" VerticalAlignment="Top" Width="120" />
            <ListBox Margin="0" Name="listBox3" Grid.Row="1" />
        </Grid>
        <Button
            Grid.Row="1"
            Grid.ColumnSpan="3"
            >保存</Button>
    </Grid>
</Window>
